import type { ContactInfo, Feedback } from "@/types/my";
import { http } from "@/utils/http";
import type { Ref, UnwrapRef } from "vue";

/**
 * 新增反馈建议
 * @returns any OK
 * @throws ApiError
 */
export const addFeedbackUsingPost = (data: Feedback) => {
  return http<Feedback>({
    url: "/wxapi/feedback",
    method: "POST",
    data
  });
};

/**
 * 查询联系我们信息列表
 * @returns any OK
 * @throws ApiError
 */
export const loadContactInfoUsingGet = () => {
  return http<ContactInfo>({
    url: "/wxapi/loadContactInfo",
    method: "GET"
  });
}
